package com.example.api.service;

import com.example.api.constant.Client1URL;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wangxianchen
 * @create 2018-05-30
 * @desc
 */

@FeignClient(value = Client1URL.SERVICE_NAME, fallback = Client1ServiceHystric.class)
public interface Client1Service {

    @GetMapping(Client1URL.HI)
    String hi(@RequestParam("name") String name);
}
